<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Video Modal Popup</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <div class="movie-card">
      <img
        src="https://m.media-amazon.com/images/I/81p+xe8cbnL._AC_SY679_.jpg"
        alt="Movie Thumbnail"
        class="thumbnail"
      />
      <h2 class="movie-title">Inception</h2>
      <p class="movie-description">
        A thief who enters the dreams of others to steal secrets from their
        subconscious is given a chance to have his criminal record erased.
      </p>
      <button class="btn" id="openModalBtn">▶ Play Trailer</button>
    </div>

    <!-- Modal -->
    <div class="modal" id="videoModal">
      <div class="modal-content">
        <h2 class="popup-title">Inception</h2>
        <button class="close-btn" id="closeModalBtn">&times;</button>
        <video id="trailer" controls>
          <source
            src="https://www.w3schools.com/html/mov_bbb.mp4"
            type="video/mp4"
          />
          Your browser does not support the video tag.
        </video>
      </div>
    </div>

    <script src="script.js"></script>
  </body>
</html>
